<script setup>
  import { ref } from 'vue';
  const videosrc=ref()
  const aa = ()=>{
    uni.request({
    				url: 'https://api.kuleu.com/api/xjj?type=json',
            method:'GET',
    				// 请求成功后返回
    				success: (res) => {
    					console.log(res.data.video);
              videosrc.value = res.data.video
    				},
    			});
  }
  aa()
  const dBtns=()=>{
    aa()
  }
</script>

<template>
    <view class="Box">
      <view class="video">
            <video class="ww"  :src="videosrc" autoplay loop show-fullscreen-btn></video>
            
      </view>
           <!--  <video id="myVideo" src="https://qiniu-web-assets.dcloud.net.cn/unidoc/zh/2minute-demo.mp4"
                                                  @error="videoErrorCallback" :danmu-list="danmuList" enable-danmu danmu-btn controls></video> -->
      <button type="primary" class="Btncss" @click="dBtns">点击刷新</button>
    </view>
</template>


<style scoped lang="scss">
  .Box{
      
    .Btncss{
    }
    .video{
      width: 100%;
      height: 100%;
        .ww{
          width: 100%;
          height: 90vh;
        }
    }
  }
</style>
